package com.shan.common.base;

/**
 * Author: shanzheng <br/>
 * Description: 统一返回结果类<br/>
 * Date： 10:46 2017/8/7.<br/>
 * Modified By: <br/>
 */
public class BaseResult {
    //状态码：1成功 ，其他为失败
    public int code;

    //成功为success,其他为失败
    public String message;

    //结果集
    public Object data;

    public BaseResult(String message, int code, Object data) {
        this.message = message;
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
